<?php


namespace app\index\controller;


use think\Controller;
use think\Model;

class Process extends Base
{
        public  function  index(){
            return view();
        }
        //确认标本删除
        public function ConfirmYbDel(){
            $data = input('post.');
            //验证条码号
            $val  = new \app\index\validate\Report();
            if(!$val->check($data)){
                $this->error($val->getError());
                exit;
            }

        }

    public  function  Connect(){
        return view();
    }

        //交接数据删除
        public  function ConnectDataDel(){
           $data = input('post.');
            //验证条码号
            $val  = new \app\index\validate\Report();
            if(!$val->check($data)){
                $this->error($val->getError());
                exit;
            }
            $res = Model('process')->ConnectDel($data['ybid']);
            if ($res) {
                $this->success('删除成功','process/Connect');
            }
            $this->error('删除失败','process/Connect');

        }
}